import {get,put,post} from "@/utils/request"

export function getRoleList() {
    return get('/authority/role/list',{})
}

export function getRole(id) {
    return get('/authority/role/'+id,{})
}

export function addRole(data) {
    return post('/authority/role',data)
}

export function updateRole(data) {
    return put('/authority/role',data)
}

export function deleteRole(id) {
    return post('/authority/role/'+id,{})
}